//
//  DCOcrAdapter.h
//  DCOcrKit
//
//  Created by 张涛 on 2021/3/31.
//  Copyright © 2021 zhangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <DCUtilKit/DCUtilKit.h>
#import "DCOcrKitMacro.h"

NS_ASSUME_NONNULL_BEGIN

@interface DCOcrAdapter : NSObject {
    UIViewController *ocrParentVC;
    DCOcrScanWay idCardScanWay;
    DCOcrScanWay bankCardScanWay;
}

@property(nonatomic,strong) id __nullable frontIdCardInfo;
@property(nonatomic,strong) NSString *frontIdCardBase64;
@property(nonatomic,strong) UIImage *frontIdCardImage;
@property(nonatomic,strong) id __nullable backIdCardInfo;
@property(nonatomic,strong) NSString *backIdCardBase64;
@property(nonatomic,strong) UIImage *backIdCardImage;
@property(nonatomic,strong) UIImage *headerImage;
@property(nonatomic,strong) id __nullable bankCardInfo;
@property(nonatomic,strong) UIImage *bankCardImage;
@property(nonatomic,strong) NSString *bankCardBase64;

@property(nonatomic,strong) void(^callBlock)(DCError * __nullable error,NSDictionary * __nullable data);

//身份证识别
- (void) idCardIdentify:(UIViewController*)parentViewController callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//银行卡识别
- (void) bankCardIdentify:(UIViewController*)parentViewController callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//设置身份证识别方式
- (void) setIdCardOcrScanWay:(DCOcrScanWay)ocrScanWay;
//设置银行卡识别方式
- (void) setBankCardOcrScanWay:(DCOcrScanWay)ocrScanWay;

@end

NS_ASSUME_NONNULL_END
